﻿using Microsoft.AspNetCore.Mvc;
using Microsoft.SqlServer.Types;
using QingZhouLinYe.HttpApi.Models;
using QingZhouLinYe.HttpApi.Models.Converters;
using SqlSugar;
using System.Diagnostics;

namespace QingZhouLinYe.HttpApi.Controllers
{
    [ApiController]
    [Route("[controller]/[Action]")]
    public class CreateDataBaseController : ControllerBase
    {
        private readonly SqlSugarClient _db;

        public CreateDataBaseController(SqlSugarClient db)
        {
            _db = db;
        }

        [HttpPost]
        public int Save()
        {
            return BaseClass.CreateSysDataBase(_db);
        }
    }

}
